package com.meritdata.cloud.data.service.development.model; /***********************************************************************
 * Module:  TD_DATA_API.java
 * Author:  Lenovo
 * Purpose: Defines the Class TD_DATA_API
 ***********************************************************************/

import javax.persistence.*;
import java.util.Date;

/**
 * 此值在条件语句解析后设置，用于某些场合下的快速处理
 * <p>
 * 数据服务表
 */
@Entity
@Table(name = "TD_DATA_API")
public class DataApi {
    /**
     * ID:ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    /**
     * 分组ID:CATEGORY_ID
     */
    @Column(name = "CATEGORY_ID")
    private Long categoryId;
    /**
     * API名称:NAME
     */
    @Column(name = "NAME")
    private String name;
    /**
     * API描述:DESC
     */
    @Column(name = "DESCRIPTION", length = 1000)
    private String desc;

    /**
     * table,sql
     * <p>
     * API实现类型:IMPL_TYPE
     */
    @Column(name = "IMPL_TYPE")
    private String implType;
    /**
     * 参数个数:PARAM_NUM
     */
    @Column(name = "PARAM_NUM", nullable = true)
    private int paramNum;
    /**
     * 创建时间:CREATE_TIME
     */
    @Column(name = "CREATE_TIME")
    private Date createTime;
    /**
     * 修改时间:UPDATE_TIME
     */
    @Column(name = "UPDATE_TIME")
    private Date updateTime;
    /**
     * 创建人ID:CREATOR
     */
    @Column(name = "CREATOR")
    private String creator;
    /**
     * 修改人ID:REVISER_ID
     */
    @Column(name = "REVISERID")
    private String reviserId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Long categoryId) {
        this.categoryId = categoryId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getImplType() {
        return implType;
    }

    public void setImplType(String implType) {
        this.implType = implType;
    }

    public int getParamNum() {
        return paramNum;
    }

    public void setParamNum(int paramNum) {
        this.paramNum = paramNum;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getCreator() {
        return creator;
    }

    public void setCreator(String creator) {
        this.creator = creator;
    }

    public String getReviserId() {
        return reviserId;
    }

    public void setReviserId(String reviserId) {
        this.reviserId = reviserId;
    }
}